﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ProjectFitus.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Brjostagjof.is | Innskráning
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-text">
    <h2>Innskráning </h2>
    <p>
        Vinsamlegast sláðu inn notendanafn og lykilorð. <br />
        En ef þú ert ekki með notanda þá geturðu <%= Html.ActionLink("stofnað notanda", "Register") %>.
    </p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Innskráning tókst ekki. Farðu yfir skráningarformið og reyndu aftur.") %>
        <div>
                        
                <div class="editor-label">
                    <label for="UserName">Notendanafn:</label>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserName) %>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <label for="Password">Lykilorð:</label>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.CheckBoxFor(m => m.RememberMe) %>
                    <label for="RememberMe">Muna notendagildin? </label>
                </div>
                
                <p>
                    <input type="submit" value="Skrá inn" />
                </p>
        </div>
    <% } %>
    </div>
</asp:Content>
